/**
 * @author مۇختەرجان مەخمۇت (mutearjan mahmood)
 * @email yeganaaa@163.com`
 * @create date 2020-09-05 18:23:12
 * @modify date 2020-09-05 18:23:12
 * @desc [description]
*/

import { IStatefulClientInterface } from "dream_rpc";
/**
 * Server side rpc methods definition
*/
export interface IBroadcastServerInterface {
    /**
     * Return value should be return a promise object
     * IF YOU WANT TO two or more parameters then should wrap these parameters at an object like "createUser(args: {name: string, email: string}): Promise<void>" instead of createUser(name: string, email: string): Promise<void>
     */
    sendBroadcast(args: { message: string, sender: string }): Promise<void>
}
/**
 * Client side rpc methods definition
*/
export interface IBroadcastClientInterface extends IStatefulClientInterface {
    onBroadcastReceived(args: { message: string, sender: string }): Promise<void>
}